package com.gj.controller;

import com.gj.model.Subsitution;
import com.gj.service.SubstitutionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author:guijie
 * date:${date}
 * description:TODO
 */
@RestController
@RequestMapping("sub")
public class SubstitutionController {
    @Autowired
    private SubstitutionService substitutionService;

    @RequestMapping("/insertSub")
    public String insertSub(){
        Subsitution subsitution = new Subsitution();
        subsitution.setHousename("碧桂园");
        substitutionService.insertSub(subsitution);
        return "success";
    }

}
